package com.teatang.tadmin.sysrole.controller;


import com.teatang.tadmin.core.controller.BasePageController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class SysRolePageController extends BasePageController {
    @RequiresPermissions("sys:role-page:index")
    @GetMapping("/sys-role-page/index.html")
    public String index() {
        return "sys-role/index";
    }

    @RequiresPermissions("sys:role-page:add")
    @GetMapping("/sys-role-page/add.html")
    public String add() {
        return "sys-role/add";
    }
}
